home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d13 / qptech.arc / TI589.ASC < prev    next >
Text File  |  1991-04-25  |  5KB  |  199 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8. PRODUCT  :  Quattro Pro                            NUMBER  :  589
  9. VERSION  :  All
  10.      OS  :  PC DOS
  11.    DATE  :  March 15, 1991                 PAGE  :  1/3
  12.  
  13.   TITLE  :  Centering a Title on a Block of Cells
  14.  
  15.  
  16.  
  17.  
  18. Quattro Pro allows text to be centered within a cell but not
  19. within a range of cells.  The following formula provides a means
  20. for centering a text string over any block of cells.
  21.  
  22. =================================================================
  23.      @REPEAT(" ",@CELL("rwidth",Blockname)/2.0-@LENGTH("Your Title")/2)&"Your Title"
  24. =================================================================
  25.  
  26.  
  27. THE BASIC PROCEDURE
  28.  
  29.     o  The formula must be entered in one cell.
  30.  
  31.     o  The only space in the formula is between the quotes at the
  32.        beginning of the formula.  This space pads the beginning
  33.        of the text string so that it will be centered.
  34.  
  35.     o  Blockname in this formula can be replaced with any cell or
  36.        block, a block name, or any function that returns a block.
  37.        This block of cells defines the range over which the text
  38.        will be centered.
  39.  
  40.     o  Replace the text Your Title with the text to be centered.
  41.  
  42.     o  The value 2.0 may need to be adjusted to compensate for
  43.        different fonts, point sizes, use of a Left Heading, or
  44.        the Print To Fit feature (only in Quattro Pro v3.0) when
  45.        printing.  Increasing this value (e.g., 2.2, 2.8, etc.)
  46.        will shift the title toward the left; decreasing it (e.g.,
  47.        1.3, 1.6, etc.) will shift the title toward the right.
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74. PRODUCT  :  Quattro Pro                            NUMBER  :  589
  75. VERSION  :  All
  76.      OS  :  PC DOS
  77.    DATE  :  March 15, 1991                 PAGE  :  2/3
  78.  
  79.   TITLE  :  Centering a Title on a Block of Cells
  80.  
  81.  
  82.  
  83.  
  84. MODIFYING THE FORMULA
  85.  
  86. The formula can be modified to increase its flexibility by
  87. storing the arguments in separate cells and referencing those
  88. cells within the formula.
  89.  
  90.  
  91. 1.   Defining the text of the title to be centered.
  92.  
  93.      Store Your Title (omitting the quote marks) in cell T3, for
  94.      example, and reference this cell in the formula.
  95.  
  96.      Example:
  97.  
  98.                  @REPEAT(" ",@CELL("rwidth",Blockname)/2.0-@LENGTH(T3)/2)&T3
  99.  
  100.  
  101. 2. Defining the block over which the title is to be centered.
  102.  
  103.      Use specific cell coordinates of the block, such as
  104.      B25..H98, over which the title is to be centered.
  105.  
  106.      Example:
  107.  
  108.                  @REPEAT(" ",@CELL("rwidth",B25..H98)/2.0-@LENGTH("Your Title")/2)&"Your Title"
  109.  
  110.      Use a name which has been assigned to a specific block of
  111.      cells through </> <Edit> <Names>, such as JulySales.
  112.  
  113.      Example:
  114.  
  115.                  @REPEAT(" ",@CELL("rwidth",JulySales)/2.0-@LENGTH("Your Title")/2)&"Your Title"
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140. PRODUCT  :  Quattro Pro                            NUMBER  :  589
  141. VERSION  :  All
  142.      OS  :  PC DOS
  143.    DATE  :  March 15, 1991                 PAGE  :  3/3
  144.  
  145.   TITLE  :  Centering a Title on a Block of Cells
  146.  
  147.  
  148.  
  149.  
  150.      Use a function which returns a block.  For example, the
  151.      function @CURVALUE("print","block") finds the block
  152.      currently defined in </> <Print> <Block>.    Store this
  153.      function in cell T2, then use the @@ function with T2 to
  154.      return its value.
  155.  
  156.      Example:
  157.  
  158.                  @REPEAT(" ",@CELL("rwidth",@@(T2))/2.0-@LENGTH("Your Title")/2)&"Your Title"
  159.  
  160.  
  161. 3.   Determining the width of the block.
  162.  
  163.      The function @CELL("rwidth",block) returns number of
  164.      characters in block's width.  After choosing one of the
  165.      methods above for defining the block, store the @CELL
  166.      function in cell T1, for example, and the title centering
  167.      formula becomes:
  168.  
  169.                  @REPEAT(" ",T1/2.0-@LENGTH("Your Title")/2)&"Your Title"
  170.  
  171.  
  172. FINE TUNING
  173.  
  174. This formula will return ERR if the block has not been defined.
  175. Define the block and press F9 to recalculate the formula.  If the
  176. block size has been changed, the title will not automatically
  177. reposition itself.  Again, press F9 to recalculate the formula.
  178.  
  179. Use Quattro Pro's Screen Preview feature to check the position of
  180. the title.  Remember, the title will be centered over the entire
  181. block.    If, for example, the block is 12 columns wide and prints
  182. on two pages, the title will be positioned near the right edge of
  183. the first page because it is being centered over all 12 columns,
  184. not just the columns on the first page.  If the title is to be
  185. centered on the first page only or over a print block plus Left
  186. Headings (columns defined as a Left Heading are not included when
  187. calculating the width of the print block), adjust the formula to
  188. move the title toward the left.
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.